const mongoose = require('mongoose')
const orderScheam = new mongoose.Schema({
    purpose:{
        type:String,
    },
    time:{
        type:Date,
        default:new Date()
    },
    isHidden:Boolean,
    type: Number,
    money: Number,
    rmark:String
})

const userSchema = new mongoose.Schema({
    username:String,
    password:String
})

const Order = mongoose.model('orders',orderScheam)
const User = mongoose.model('users',userSchema)
module.exports ={ Order , User};